/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package escom.ipn.modelo.facade;

import escom.ipn.modelo.dao.Incidente_RadiosDAO;
import escom.ipn.modelo.dto.Incidente_Radios;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Daniel
 */
public class Incidente_RadiosFacade {
    private Connection cnn;
    private Incidente_RadiosDAO dao;
    
    public Incidente_RadiosFacade(Connection cnn){
        this.cnn = cnn;
        dao = new Incidente_RadiosDAO();
    }
    
    public void crearIncidenteRadio(Incidente_Radios a)
            throws SQLException{
        dao.createIncidenteRadio(a, cnn);
    }
    
    public List leerIncidenteRadio(Incidente_Radios a)
            throws SQLException{
        return dao.loadIncidenteRadio(a, cnn);
    }
    
    public List listarIncidenteRadio() throws SQLException{
        return dao.loadIncidenteRadio(cnn);
    }
}
